<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Documento sin título</title>
<link href="admin/assets/css/bootstrap.css" rel="stylesheet" type="text/css">
</head>

<body>

<div class="col-sm-8">
<form class="form-horizontal" method="post" enctype="multipart/form-data">
<p class="h3">Editar Camion o Utilitario</p>
<div class="divisortitulo">
  <div class="container">UNIDAD</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Operación</label>
<div class="col-lg-4">
  <select name="reservado" class="form-control">
    <option value="0" <?=($unidad['reservado']==0)?"selected":""?>>EN VENTA</option>
    <option value="1" <?=($unidad['reservado']==1)?"selected":""?>>RESERVADO</option>
  </select>
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Marca</label>
<div class="col-lg-4">
  <input name="marca" type="text" class="form-control" autofocus value="<?=$unidad['marca']?>">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Modelo</label>
<div class="col-lg-4">
  <input name="modelo" type="text" class="form-control" value="<?=$unidad['modelo']?>">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Potencia</label>
<div class="col-lg-4">
  <input name="potencia" type="text" class="form-control" value="<?=$unidad['potencia']?>">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Año</label>
<div class="col-lg-4">
  <input name="anio" type="text" class="form-control" value="<?=$unidad['anio']?>">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Tipo</label>
<div class="col-lg-4">
  <input name="tipo" type="text" class="form-control" value="<?=$unidad['tipo']?>">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Kilometros</label>
<div class="col-lg-4">
  <input name="kilometros" type="text" class="form-control" value="<?=$unidad['kilometros']?>">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Observaciones</label>
<div class="col-lg-4">
  <input name="observaciones" type="text" class="form-control" value="<?=$unidad['observaciones']?>">
</div>
</div>

<div class="divisortitulo">
  <div class="container">EQUIPAMIENTO</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Climatizador</label>
<div class="col-lg-4">
  <select name="climatizador" class="form-control">
    <option value="-1" <?=($equipamiento['climatizador']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($equipamiento['climatizador']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($equipamiento['climatizador']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Aire Acondicionado</label>
<div class="col-lg-4">
  <select name="aireacondicionado" class="form-control">
    <option value="-1" <?=($equipamiento['aireacondicionado']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($equipamiento['aireacondicionado']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($equipamiento['aireacondicionado']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Tanque Adicional</label>
<div class="col-lg-4">
  <select name="tanqueadicional" class="form-control">
    <option value="-1" <?=($equipamiento['tanqueadicional']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($equipamiento['tanqueadicional']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($equipamiento['tanqueadicional']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Vigía Motor</label>
<div class="col-lg-4">
  <select name="vigiamotor" class="form-control">
    <option value="-1" <?=($equipamiento['vigiamotor']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($equipamiento['vigiamotor']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($equipamiento['vigiamotor']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Vigía Cubiertas</label>
<div class="col-lg-4">
  <select name="vigiacubiertas" class="form-control">
    <option value="-1" <?=($equipamiento['vigiacubiertas']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($equipamiento['vigiacubiertas']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($equipamiento['vigiacubiertas']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Plato</label>
<div class="col-lg-4">
  <select name="plato" class="form-control">
    <option value="-1" <?=($equipamiento['plato']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($equipamiento['plato']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($equipamiento['plato']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Guardabarros</label>
<div class="col-lg-4">
  <select name="guardabarros" class="form-control">
    <option value="-1" <?=($equipamiento['guardabarros']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($equipamiento['guardabarros']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($equipamiento['guardabarros']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Bigotera</label>
<div class="col-lg-4">
  <select name="bigotera" class="form-control">
    <option value="-1" <?=($equipamiento['bigotera']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($equipamiento['bigotera']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($equipamiento['bigotera']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Gancho Acoplado</label>
<div class="col-lg-4">
  <select name="ganchoacoplado" class="form-control">
    <option value="-1" <?=($equipamiento['ganchoacoplado']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($equipamiento['ganchoacoplado']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($equipamiento['ganchoacoplado']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Conexiones (aire/elect)</label>
<div class="col-lg-4">
  <select name="conexiones" class="form-control">
    <option value="-1" <?=($equipamiento['conexiones']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($equipamiento['conexiones']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($equipamiento['conexiones']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>

<div class="divisortitulo">
  <div class="container">CABINA</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Estado General</label>
<div class="col-lg-4">
  <input name="cabina_estado" type="text" class="form-control" value="<?=$cabina['estado']?>">
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Dormitorio</label>
<div class="col-lg-4">
  <select name="cabina_dormitorio" class="form-control">
    <option value="-1" <?=($cabina['dormitorio']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($cabina['dormitorio']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($cabina['dormitorio']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Observaciones</label>
<div class="col-lg-4">
  <input name="cabina_observaciones" type="text" class="form-control" value="<?=$cabina['observaciones']?>">
</div>
</div>

<div class="divisortitulo">
  <div class="container">CARROCERIA</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Estado General</label>
<div class="col-lg-4">
  <input name="carroceria_general" type="text" class="form-control" value="<?=$carroceria['estado']?>">
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Cucheta</label>
<div class="col-lg-4">
  <select name="carroceria_cucheta" class="form-control">
    <option value="-1" <?=($carroceria['cucheta']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($carroceria['cucheta']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($carroceria['cucheta']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Marca</label>
<div class="col-lg-4">
  <input name="carroceria_marca" type="text" class="form-control" value="<?=$carroceria['marca']?>">
</div>
</div>


<div class="form-group">
<label class="col-lg-2 control-label">Lona</label>
<div class="col-lg-4">
  <select name="carroceria_lona" class="form-control">
    <option value="-1" <?=($carroceria['lona']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($carroceria['lona']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($carroceria['lona']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Descripcion</label>
<div class="col-lg-4">
  <input name="carroceria_descripcion" type="text" class="form-control" value="<?=$carroceria['descripcion']?>">
</div>
</div>

<div class="divisortitulo">
  <div class="container">NEUMATICOS DELANTEROS</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Medida</label>
<div class="col-lg-4">
  <input name="nd_medida" type="text" class="form-control" value="<?=$nd['medida']?>">
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Porcentaje Desgaste</label>
<div class="col-lg-4">
  <input name="nd_desgaste" type="text" class="form-control" value="<?=$nd['desgaste']?>">
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Recapado</label>
<div class="col-lg-4">
  <select name="nd_recapado" class="form-control">
    <option value="-1" <?=($nd['recapado']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($nd['recapado']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($nd['recapado']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Llantas</label>
<div class="col-lg-4">
  <input name="nd_llantas" type="text" class="form-control" value="<?=$nd['llantas']?>">
</div>
</div>

<div class="divisortitulo">
  <div class="container">NEUMATICOS TRASEROS</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Medida</label>
<div class="col-lg-4">
  <input name="nt_medida" type="text" class="form-control" value="<?=$nt['medida']?>">
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Dibujo</label>
<div class="col-lg-4">
  <input name="nt_dibujo" type="text" class="form-control" value="<?=$nt['dibujo']?>">
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Porcentaje Desgaste</label>
<div class="col-lg-4">
  <input name="nt_desgaste" type="text" class="form-control" value="<?=$nt['desgaste']?>">
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Recapado</label>
<div class="col-lg-4">
  <select name="nt_recapado" id="select12" class="form-control">
    <option value="-1" <?=($nt['recapado']==-1)?"selected":""?>>NO DISPONIBLE</option>
    <option value="1" <?=($nt['recapado']==1)?"selected":""?>>SI</option>
    <option value="0" <?=($nt['recapado']==0)?"selected":""?>>NO</option>
  </select>
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Llantas</label>
<div class="col-lg-4">
  <input name="nt_llantas" type="text" class="form-control" value="<?=$nt['llantas']?>">
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label">Observaciones</label>
<div class="col-lg-4">
  <input name="nt_observaciones" type="text" class="form-control" value="<?=$nt['observaciones']?>">
</div>
</div>
<div class="divisortitulo">
  <div class="container">FOTOGRAFIAS</div>
</div>
<?php foreach ($adjuntos as $adjunto) { ?>
<div class="form-group">
    <label class="col-lg-2 control-label">&nbsp;</label>
    <div class="col-lg-4">
        <img src="<?=$adjunto['adjunto']?>" height="120px" width="162px"><br><a href="/admin/borrar_adjunto/<?=$adjunto['idadjunto']?>/<?=$adjunto['idunidad']?>/">Eliminar</a>
    </div>
</div>
<?php } ?>
<div class="form-group">
<label class="col-lg-2 control-label">Foto 1</label>
<div class="col-lg-4">
    <input name="foto1" type="file" class="form-control" accept="image/*">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Foto 2</label>
<div class="col-lg-4">
    <input name="foto2" type="file" class="form-control" accept="image/*">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Foto 3</label>
<div class="col-lg-4">
    <input name="foto3" type="file" class="form-control" accept="image/*">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Foto 4</label>
<div class="col-lg-4">
    <input name="foto4" type="file" class="form-control" accept="image/*">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Foto 5</label>
<div class="col-lg-4">
    <input name="foto5" type="file" class="form-control" accept="image/*">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Foto 6</label>
<div class="col-lg-4">
    <input name="foto6" type="file" class="form-control" accept="image/*">
</div>
</div>

    </p>
    <p>&nbsp;</p>
    <div class="col-lg-4">
      <div align="left">
        <input type="submit" name="submit" id="submit" value="Enviar" class="btn btn-primary">
      </div>
    </div>
    
    <div align="center"></div>
</form>
</div>
</html>
